package com.sc.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AnnounceVO {
    @ApiModelProperty(value = "主键", example = "1")
    private Integer id;

    @ApiModelProperty(value = "标题", example = "停电通知")
    private String  title;

    @ApiModelProperty(value = "作者", example = "物业中心")
    private String author;

    @ApiModelProperty(value = "紧急程度", example = "1")
    private int emExtend;

    @ApiModelProperty(value = "发布状态", example = "1")
    private int anStatus;

    @ApiModelProperty(value = "发布人", example = "张三")
    private String publisher;

    @ApiModelProperty(value = "发布日期", example = "2024/11/29")
    @JsonFormat(shape = JsonFormat.Shape.STRING ,pattern = "yyyy/MM/dd")
    private LocalDate anDate;

}
